package com.budwk.app.sqfwV2.service.enterpriseWarrantyServe;

import com.budwk.app.sqfwDoc.dto.CompleteFlowTemplateCodeUpdateDTO;
import com.budwk.app.sqfwV2.dto.dto.SqfwShopBaseInfoDTO;
import com.budwk.app.sqfwV2.dto.dto.dayingRoad.DownExcelLedgerReqVo;
import com.budwk.starter.common.result.Result;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * @author zhangp
 * @description TODO
 * @className PublicSecurityService
 * @Date 11:59 2024/3/27
 */
public interface EnterpriseWarrantyServeService {
    /**
     * 提交数据生成PDF
     *
     * @param dto
     */
    void submitData(CompleteFlowTemplateCodeUpdateDTO dto);

    /**
     * 重新生成PDF
     *
     * @param sqfwFlowId
     * @return
     */
    Result<?> reGeneratePDF(String sqfwFlowId);

    /**
     * 根据编码下载excel
     *
     * @param reqVo
     * @return
     */
    Result<?> downExcelLedger(DownExcelLedgerReqVo reqVo);

    /**
     * 批量数据检测
     *
     * @param sqfwIdList
     * @return
     */
    List<String> isCheckDataBatch(List<String> sqfwIdList);

    /**
     * 下载模板
     *
     * @param index
     * @return
     */
    Result<?> downloadTemplate(String index, HttpServletResponse response);

    /**
     * 商铺数据
     *
     * @param content
     * @param pageSize
     * @param pageNo
     * @param types
     * @return
     */
    Result<?> getShopInfoListByContent(String content, Integer pageSize, Integer pageNo, List<String> types);

    /**
     * 记录内容
     *
     * @param shopBaseInfoId
     * @return
     */
    Result<?> getFormSummaryInfoListByShopId(String shopBaseInfoId);

    /**
     * 聚合pdf下载
     *
     * @param reqVo
     * @return
     */
    Result<?> downPdfLedger(DownExcelLedgerReqVo reqVo);

}
